package com.viser.partyinrs;

import com.viser.partyinrs.entities.Mesto;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class MestoDetaljiActivity extends Activity {
	Mesto mesto;
	TextView txtNaziv, txtAdresa, txtTelefon, txtMuzika;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.opis_izabranog_mesta);
        Intent i = this.getIntent();
        Bundle b = i.getExtras();
        mesto = (Mesto)b.getSerializable("mesto");
        txtNaziv=(TextView) findViewById(R.id.txtMestoDetaljiNaziv);
        txtAdresa=(TextView) findViewById(R.id.txtMestoDetaljiAdresa);
        txtMuzika=(TextView) findViewById(R.id.txtMestoDetaljiMuzika);
        txtTelefon=(TextView) findViewById(R.id.txtMestoDetaljiTelefon);
        
        txtNaziv.setText(mesto.naziv);
        txtAdresa.setText(mesto.adresa);
        txtTelefon.setText(mesto.telefon);
        txtMuzika.setText(mesto.muzika);
	}
}
